#include <stdio.h>
#include <stdlib.h>
#include "conjuction.h"

int main(void)
{
FILE *fr;
fr=fopen("infix.dat","rt");
int i=0;
char temp=0;
char infix[100];
char *polish;
for(i=0;infix[i]!=EOF;i++){
      infix[i]=fgetc(fr);
      }
convertInfixPolish (infix, polish);
if(convertInfixPolish (infix, polish)==1){
for(i=0;polish[i]!='\0';i++){
      printf("%c",polish[i]);
      }
}
else printf("Please check the infix!");
fclose(fr);
  system("PAUSE");	
  return 0;
}
